package legumes.client.services.callbacks;

import legumes.client.services.LegumesServicesHelper;
import legumes.client.services.util.rpc.SequencableRPCCall;
import legumes.shared.domain.SellSessionForCustomer;

public class GetSellSessionForCustomerCallback extends
		SequencableRPCCall<SellSessionForCustomer> {

	private SellSessionForCustomer sellSessionForCustomer;

	public void onSuccess(SellSessionForCustomer ssfc_) {
		sellSessionForCustomer = ssfc_;
		callNext();
	}

	public SellSessionForCustomer getSellSessionForCustomer() {
		return sellSessionForCustomer;
	}

	@Override
	protected void doCall() {
		LegumesServicesHelper.LEGUMES_SERVICES.getSellSessionForCustomer(this);
	}

}
